<?php 
session_start();
require_once "common.php";
function user_overtime($oltime){
		$new_time=mktime();
		if($new_time-$oltime>300){
			$res=$new_time-$oltime;
			session_destroy();
			exit("登录超时！");
		}else{
			$_SESSION[time]=mktime();
		}
	}
function user_porperty(){
	$shell=md5($_SESSION['username'].$_SESSION['password'].SHELL);
	if($_SESSION['shell']!=$shell){
		exit("请先登录再访问该页面！");
	}
}
user_overtime($_SESSION['time']);
user_porperty();
?>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
<script language="javascript" src="./js/jquery.js"></script>
<link href="./css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="mainDiv">
	<div id="topDiv">
	<div id="tmenu"><ul>
	<li ><a href="./ad_content.php" target="left">内容管理</a></li>
	<li ><a href="./ad_part.php" target="left">栏目管理</a></li>
	<li ><a href="./ad_user.php" target="left">用户管理</a></li>
	<li ><a href="./ad_info.php" target="left">网站管理</a></li>
	<li ><a href="./logout.php">退出登录</a></li>
	</ul></div></div>
	<iframe name="left" src="./ad_content.php" width="12%" height="100%" style="float:left;border:2px;margin-top:-48px;margin-left:-8px;" scrolling="auto"></iframe>
	<iframe name="show" src="./article_list.php" width="88%" height="95%" style="float:left;border:0px;margin-top:-48px;margin-left:-8px;" scrolling="yes"></iframe>
</div>
	<div id="bottomDiv"></div>
<script language="javascript">
$("#test1").toggle(function(){$("#test").slideDown()},function(){$("#test").slideUp()})
</script>
</body>
</html>
